//
//  EpointStringUtil.h
//  EpointFrame5
//
//  Created by 李亚春 on 13-12-16.
//  Copyright (c) 2013年 Epoint. All rights reserved.
//

#import <Foundation/Foundation.h>

#define HTMLSTYPE1 @"<style>#oschina_title {color: #000000; margin-bottom: 6px;font-weight:bold;}#oschina_title img{vertical-align:middle;margin-right:6px;}#oschina_title a{color:#0D6DA8;}#oschina_outline {color: #707070; font-size:12px;}#oschina_outline a{color:#0D6DA8;}#epoint_sender{color:#000033; font-size:12px;}#oschina_software{color:#808080;font-size:12px}#oschina_body img {max-width: 300px;}#oschina_body{font-size:16px;max-width:300px;line-height:24px;} #oschina_body table{max-width:300px;}#oschina_body pre {font-size:9pt;font-family:Courier New,Arial;border:1px solid #ddd;border-left:5px solid #6CE26C;background:#f6f6f6;padding:5px;}.hr0{ height:1px;border:none;border-top:1px dashed #0066CC;}.hr1{ height:1px;border:none;border-top:1px solid #555555;}.hr2{ height:3px;border:none;border-top:3px double red;}.hr3{ height:5px;border:none;border-top:5px ridge green;}.hr4{ height:10px;border:none;border-top:10px groove skyblue;}</style>"

@interface EpointStringUtil : NSObject

//截取一个xml标签之间的属性
+(NSString *)getXMLFormatedAttribute:(NSString *)bs :(NSString *)xmltag;

//截取XML包含标签的值
+(NSString *)getXMLFormatedAttributeBsWithTag:(NSString *)bs xmlTag:(NSString *)xmltag;

//过滤XML特殊字符
+(NSString *)filterXmlString:(NSString *)origionStr;

+ (BOOL)stringIsNotNull:(NSString *)string;

//判断字符串是否以某字符串开头
+(BOOL)startWith:(NSString*)prefix forString:(NSString*)text;

//判断两个字符串是否相等
+(BOOL)stringEquals:(NSString*)str1 to:(NSString*)str2;

//判断字符串是否以某字符结尾
+(BOOL)endWith:(NSString*)suffix forString:(NSString*)text;

//生产随机UUID
+(NSString *)gen_uuid;
+ (NSString *)URLEncodedString:(NSString *)url;
@end
